package sketch.ounit.fuzz;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;


public class ObjectFuzzerTest extends TestCase {

	public static Test suite() {
		return new TestSuite(ObjectFuzzerTest.class);
	}
	
	public void testNewObjectCreation() {
		NewObjectFuzzer.setTimeLimit(2);
		//try to create 10 new tree maps
		int i = 0;
		while(NewObjectFuzzer.hasMoreObject(treemap.TreeMap.class)) {
		    treemap.TreeMap map = NewObjectFuzzer.createNewObject(treemap.TreeMap.class);
		    System.out.println("The: " + (i++) + "-th tree map:");
		    System.out.println(map);
		    System.out.println(NewObjectFuzzer.currentSequence().sequence.toCodeString());
		    System.out.println();
		}
	}
}
